.offer-box {
    width: 100%;
    height: 600px;
    position: relative;
    border: 1px solid #e8e8e8
}
.offer-box:after {
    content: '';
    width:100%;
    height:40px;
    position: absolute;
    border-bottom: 1px solid #e8e8e8;
    background: #f7f7f7;
    left: 0;
    top: 0;
    z-index: 0;
}

.offer-box .offer-goods-items {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.offer-box .goods-item {
    width:100px;
    height:100%;
    float:left;
}

.offer-box .goods-item .goods-name {
    display:block;
    width:100%;
    padding:0 15px;
    height: 40px;
    font-size: 14px;
    line-height:40px;
    text-align:center;
    color: #333;
    overflow: hidden;text-overflow:ellipsis;white-space: nowrap;
    border-right: 1px solid #e8e8e8;
}

.offer-box .goods-item .detail-box {
    position: absolute;
    width: calc(100% - 40px);
    height: calc(100% - 110px);
    left:20px;
    top:50px;
    display:none;
    overflow-x:hidden;
    overflow-y:auto;
}
.offer-box .goods-item .goods-item-total{
    position: absolute;
    width: calc(100%);
    height:50px;
    left:0;
    bottom:0;
    padding:5px 10px;
    background:#efefef;
    border-top:1px solid #e8e8e8;
    display:none;
}
.offer-box .goods-item .goods-item-total .goods-total{
    font-size:12px;
    line-height:40px;
}
.offer-box .goods-item .goods-item-total .goods-total span{
    font-size:16px;
    font-weight:600;
}

.offer-box .detail-item {
    width:100px;
    height:auto;
}

.offer-box .detail-item .item-name {
    font-size: 14px;
    line-height:20px;
    color:#333;
    border: 1px solid #e8e8e8;
    border-bottom:0;
    padding: 10px;
    background: #f7f7f7;
    width:100%;
    position:relative;
    display:block;
}

.offer-box .detail-item:last-child .item-name{
    border-bottom:1px solid #e8e8e8;
}
.offer-box .detail-box .add-item{
    width:100px;
    height:40px;
    display:block;
    border:1px solid #e8e8e8;
    border-bottom:0;
    text-align:center;
    line-height:40px;
    font-size:18px;
    background: #f7f7f7;
    color:#333;
}
.offer-box .detail-item .cell-items {
    position:absolute;
    width:calc(100% - 100px);
    height:calc(100% - 70px);
    padding:10px 20px 10px 0;
    left:120px;
    top:60px;
    overflow-x: hidden;
    overflow-y: auto;
    display:none;
    overflow-x:hidden;
    overflow-y:auto;
}
.offer-box .detail-item .detail-item-total{
    position:absolute;
    width:calc(100% - 100px);
    height:50px;
    left:120px;
    top:10px;
    display:none;
}
.offer-box .detail-item .detail-item-total .item-total{
   font-size:12px;line-height:50px;
}
.offer-box .detail-item .detail-item-total .item-total span{
    font-size:14px;font-weight:600;
}
.offer-box .detail-item .cell-items::-webkit-scrollbar {
    width: 5px;
    height: 7px; }
.offer-box .detail-item .cell-items::-webkit-scrollbar-track {
    background-color: #FAFAFA; }
.offer-box .detail-item .cell-items::-webkit-scrollbar-thumb {
    background-color: #F2F2F2; }
.offer-box .detail-item .cell-items::-webkit-scrollbar-thumb:hover {
    background-color: #BFBFBF; }
.offer-box .detail-item .cell-items::-webkit-scrollbar-thumb:active {
    background-color: #CCC; }

.offer-box .detail-item.active .detail-item-total,
.offer-box .detail-item.active .cell-items{
    display:block;
}
.offer-box .detail-item.active .item-name{
    background:#40caba;
    color:#fff;
    border-color:#40caba;
}
.offer-box .detail-item .cell-item {
    border: 1px solid #e8e8e8;
    margin-bottom: 10px;
}

.offer-box .detail-item .cell-item-title {
    width: 80px;
    flex: none;
    text-align: center;
    background: #f7f7f7;
    border-right: 1px solid #e8e8e8;
    padding: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-box .detail-item .cell-item-content {
    padding: 5px 10px;
}

.offer-box .detail-item .cell-item-content .input-item {
    flex: none;
    margin: 5px 5px 0 0;
}

.offer-box .cell-item-content .input-group.input-item .form-control {
    width: 80px !important;
}

.offer-box .detail-item .cell-item-price {
    padding: 5px 10px;
    font-size: 16px;
    line-height: 40px;
}
.offer-box .detail-item .cell-item .del-cell,
.offer-box .detail-item .cell-item .add-cell{
    width:40px;
    flex: none;
    text-align: center;
    background: #f7f7f7;
    border-left: 1px solid #e8e8e8;
    padding: 5px;
    font-size:18px;
    color:#333;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.offer-box .goods-item.active .goods-name {
    background: #fff;
}

.offer-box .goods-item.active .detail-box,
.offer-box .goods-item.active .goods-item-total {
    display: block
}
.offer-table{font-size:12px;}